home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / asciitext.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  4KB  |  123 lines

  1. /*
  2.  * $XConsortium: AsciiText.h,v 1.16 91/01/21 12:39:04 swick Exp $ 
  3.  */
  4.  
  5. /***********************************************************
  6. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  7. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  8.  
  9.                         All Rights Reserved
  10.  
  11. Permission to use, copy, modify, and distribute this software and its 
  12. documentation for any purpose and without fee is hereby granted, 
  13. provided that the above copyright notice appear in all copies and that
  14. both that copyright notice and this permission notice appear in 
  15. supporting documentation, and that the names of Digital or MIT not be
  16. used in advertising or publicity pertaining to distribution of the
  17. software without specific, written prior permission.  
  18.  
  19. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  20. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  21. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  22. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  23. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  24. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  25. SOFTWARE.
  26.  
  27. ******************************************************************/
  28.  
  29. /***********************************************************************
  30.  *
  31.  * AsciiText Widget
  32.  *
  33.  ***********************************************************************/
  34.  
  35. /*
  36.  * AsciiText.c - Public header file for AsciiText Widget.
  37.  *
  38.  * This Widget is intended to be used as a simple front end to the 
  39.  * text widget with an ascii source and ascii sink attached to it.
  40.  *
  41.  * Date:    June 29, 1989
  42.  *
  43.  * By:      Chris D. Peterson
  44.  *          MIT X Consortium 
  45.  *          kit@expo.lcs.mit.edu
  46.  */
  47.  
  48. #ifndef _AsciiText_h
  49. #define _AsciiText_h
  50.  
  51. /****************************************************************
  52.  *
  53.  * AsciiText widgets
  54.  *
  55.  ****************************************************************/
  56.  
  57. #include <X11/Xaw/Text.h>        /* AsciiText is a subclass of Text */
  58. #include <X11/Xaw/AsciiSrc.h>
  59.  
  60. /* Resources:
  61.  
  62.  Name             Class        RepType          Default Value
  63.  ----             -----        -------          -------------
  64.  autoFill         AutoFill        Boolean          False
  65.  background         Background        Pixel          XtDefaultBackground
  66.  border             BorderColor    Pixel          XtDefaultForeground
  67.  borderWidth         BorderWidth    Dimension      1
  68.  bottomMargin         Margin        Position      2
  69.  cursor             Cursor        Cursor          xterm
  70.  destroyCallback     Callback        Pointer          NULL
  71.  displayCaret         Output        Boolean          True
  72.  displayPosition     TextPosition    int          0
  73.  editType         EditType        XawTextEditType      XawtextRead
  74.  font             Font        XFontStruct*      Fixed
  75.  foreground         Foreground        Pixel          Black
  76.  height             Height        Dimension      font height
  77.  insertPosition         TextPosition    int          0
  78.  leftMargin         Margin        Position      2
  79.  mappedWhenManaged   MappedWhenManaged    Boolean          True
  80.  resize             Resize        XawTextResizeMode XawtextResizeNever
  81.  rightMargin         Margin        Position      4
  82.  scrollHorizontal    Scroll        XawTextScrollMode XawtextScrollNever
  83.  scrollVertical         Scroll        XawTextScrollMode XawtextScrollNever
  84.  selectTypes         SelectTypes    Pointer          pos/word/line/par/all
  85.  selection         Selection        Pointer          (empty selection)
  86.  sensitive         Sensitive        Boolean          True
  87.  sink             TextSink        Widget          (none)
  88.  source             TextSource        Widget          (none)
  89.  string             String        String          NULL
  90.  topMargin         Margin        Position      2
  91.  width             Width        Dimension      100
  92.  wrap             Wrap        XawTextWrapMode      XawtextWrapNever
  93.  x             Position        Position      0
  94.  y             Position        Position      0
  95.  
  96.  (see also *Src.h and *Sink.h)
  97. */
  98.  
  99. /*
  100.  * Everything else we need is in StringDefs.h or Text.h
  101.  */
  102.  
  103. typedef struct _AsciiTextClassRec    *AsciiTextWidgetClass;
  104. typedef struct _AsciiRec            *AsciiWidget;
  105.  
  106. extern WidgetClass asciiTextWidgetClass;
  107.  
  108. /************************************************************
  109.  *
  110.  * Disk and String Emulation Info.
  111.  * 
  112.  ************************************************************/
  113.  
  114. #ifdef ASCII_STRING
  115. extern WidgetClass asciiStringWidgetClass;
  116. #endif
  117.  
  118. #ifdef ASCII_DISK
  119. extern WidgetClass asciiDiskWidgetClass;
  120. #endif
  121.  
  122. #endif /* _AsciiText_h */
  123.